package com.woodws.fresh.square.entity.inputvo;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 根据用户ID查询动态列表
 */
public class GetDynamicListForUserIdInputVo implements Serializable {

    private static final long serialVersionUID = 7801911417053871371L;

    @NotEmpty(message = "用户编号不能为空！")
    private String userId;

    @NotNull(message = "页码不能为空！")
    @Min(value = 1, message = "页码只能为大于等于1的整数！")
    private Integer currentPage;

    @NotNull(message = "每页显示条数不能为空！")
    @Min(value = 10, message = "每页显示条数只能为大于等于10的整数！")
    private Integer pageSize;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String toString() {
        return "GetDynamicListForUserIdInputVo{" +
                "userId='" + userId + '\'' +
                ", currentPage=" + currentPage +
                ", pageSize=" + pageSize +
                '}';
    }
}
